View Issue Details

IDProjectCategoryView StatusLast Update
0001419K18X001.00 SKB SWANSWpublic2022-01-07 08:26
Reporter(ALTech) Sangmin Choi Assigned To(ALTech) Sangmin Choi Due Date2022-01-07 15:39
PrioritynormalSeveritys3-moderateReproducibilitysometimes
Status closedResolutionreopened 
Summary0001419: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 457 (edidinfo), pid 457 (edidinfo)
DescriptionWhen I run the sleep/wakeup repeat aging test, there are following messages on edidinfo.

12-30 14:54:15.556 370 934 F libc Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 934 (TimeCheckThread), pid 370 (audioserver)
12-30 14:54:24.195 458 533 F libc Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 533 (TimeCheckThread), pid 458 (audioserver)
12-30 14:54:24.996 460 - F libc Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 460 (com.skb.btvserv), pid 460 (com.skb.btvserv)
12-30 14:54:25.026 457 - F libc Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 457 (edidinfo), pid 457 (edidinfo)
12-30 14:54:30.470 655 702 F libc Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 702 (TimeCheckThread), pid 655 (audioserver)
12-30 14:54:31.316 671 - F libc Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 671 (edidinfo), pid 671 (edidinfo)
12-30 14:54:31.331 672 - F libc Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 672 (com.skb.btvserv), pid 672 (com.skb.btvserv)
12-30 14:54:36.769 800 835 F libc Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 835 (TimeCheckThread), pid 800 (audioserver)
12-30 14:54:37.563 820 - F libc Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 820 (edidinfo), pid 820 (edidinfo)
12-30 14:54:37.578 821 - F libc Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 821 (com.skb.btvserv), pid 821 (com.skb.btvserv)

I guess the SIGSEGV means the null pointer reference issue.

Could you please check why this messages are displayed?

You can download the logcat, tombstone and ANR at the following link.
http://altserver01.iptime.org/Aging_log/BTVSBOX-597/20220103_084958/58.122.202.144/
TagsNo tags attached.
Attach Tags

Users monitoring this issue

User List (SW) Jacky Chiang , (SW) Peter Chen

Activities

(ALTech) Sangmin Choi

2022-01-03 14:58

developer   ~0009194

Dear Jacky,

Could you please check this issue and assign an engineer?

Thank you.

(SW) Jacky Chiang

2022-01-03 19:04

manager   ~0009199

Hi Sangmin,

    I have assigned our engineer to check it.

(SW) Jerry Lin

2022-01-05 16:03

developer   ~0009204

Hi Sangmin,

I checked "edidfile" and found a suspicious point.
I am solving this problem now.

The "edidfile" was included to some unnecessary libraries when compiling,
Because of the problems of these unnecessary libraries, the edidinfo died and then restarted.
So the null pointer problem was generated.
I will remove these unnecessary libraries to avoid this problem.

Jerry

(ALTech) Sangmin Choi

2022-01-06 10:55

developer   ~0009217

Hi, Jerry,

How can I test it?

For example,
Your modification was applied to 20220106 daily build.
I want to know the way to get "null pointer exception" on edidinfo with 20220105 daily build.
Then I want to test same way with 20220106 daily build.

Could you please let me know how to reproduce it?

Thank you.

(SW) Jerry Lin

2022-01-06 12:07

developer   ~0009218

Hi Sangmin,
I can not reproduce the issue.
I only check with logcat file and review the library "libAudioHalInf.so".

1. From the backtrace, i think that the "edidinfo" does not need the file "libAudioHalInf.so".
    So i modify makefile to remove this library.
==============================================================================================================
12-30 14:54:43.971 1075 1075 F DEBUG : pid: 921, tid: 921, name: edidinfo >>> /vendor/bin/edidinfo <<<
12-30 14:54:43.971 1075 1075 F DEBUG : uid: 0
12-30 14:54:43.971 1075 1075 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
12-30 14:54:43.971 1075 1075 F DEBUG : Cause: null pointer dereference
12-30 14:54:43.971 1075 1075 F DEBUG : r0 00000000 r1 00000000 r2 5b649ac4 r3 00000003
12-30 14:54:43.971 1075 1075 F DEBUG : r4 f0b2b00c r5 f0b2b008 r6 00000000 r7 efaa9260
12-30 14:54:43.971 1075 1075 F DEBUG : r8 efe4e1a5 r9 f104c097 r10 00000001 r11 f1050cda
12-30 14:54:43.971 1075 1075 F DEBUG : ip ff8346d8 sp ff834bc0 lr efad30c5 pc efad30c6
12-30 14:54:43.974 1075 1075 F DEBUG :
12-30 14:54:43.974 1075 1075 F DEBUG : backtrace:
12-30 14:54:43.974 1075 1075 F DEBUG : #00 pc 000010c6 /vendor/lib/libVasAudioOutPort.so (android::VasAudioOutPort::getHwDevice()+126) (BuildId: 277376ed5f6559bfca0cfdcfcf4fda83)
12-30 14:54:43.974 1075 1075 F DEBUG : #01 pc 0000103d /vendor/lib/libVasAudioOutPort.so (android::VasAudioOutPort::VasAudioOutPort()+40) (BuildId: 277376ed5f6559bfca0cfdcfcf4fda83)
12-30 14:54:43.974 1075 1075 F DEBUG : #02 pc 000021ad /vendor/lib/libAudioHalInf.so (BuildId: 45d2efec0988ebe796f785107713bb54)


2. I also modify the library libAudioHalInf.so.
You can check the file "logcat.log.0006" in successful case.
12-30 13:26:36.210 1439 1439 I VasAudioOutPort: get DevicesFactoryHal sucess
12-30 13:26:36.213 1439 1439 I VasAudioOutPort: get hwDevice success
12-30 13:26:36.217 1439 1439 I VasAudioOutPort: hwDevice init check success

You can check the file "logcat.log" in failed case.
12-30 14:54:44.219 1083 1083 I VasAudioOutPort: get DevicesFactoryHal sucess
12-30 14:54:51.127 1082 1082 I VasAudioOutPort: get hwDevice fail

The VasAudioOutPort get hwDevice is fail, because hwDevice is NULL.
And the VasAudioOutPort was not confirmed hwDevice again in the next check.
So i added a protection to avoid the null porinter problem,

Jerry

(ALTech) Sangmin Choi

2022-01-06 13:45

developer   ~0009279

Hi, Jerry,

Ok, I understood.
Thank you for detail information.

(ALTech) Sangmin Choi

2022-01-06 14:25

developer   ~0009282

Hi, Jerry,

I understood you modified libAudioHalInf.so also, but I couldn't find the commit.
Could you please let me know where can I find this commit?

(SW) Jerry Lin

2022-01-06 14:33

developer   ~0009284

Hi Sangmin,
in vendor/synaptics/vsxxx.

Jerry

(ALTech) Sangmin Choi

2022-01-06 14:46

developer   ~0009285

Hi, Jerry,

Ok, I found it, thanks.

(SW) Jerry Lin

2022-01-06 17:34

developer   ~0009287

Hi Sangmin,
Please help to verify this issue.
If no issue found , please help to close it.

Jerry

(ALTech) Sangmin Choi

2022-01-07 08:26

developer   ~0009291

Hi, Jerry,

I can't judge it was fixed or not, because I can't reproduce it.
But, this issue was reproduced very rarely so I want to close it now.
I will reopen this issue when I face the same issue.

Thank you.

Issue History

Date Modified Username Field Change
2022-01-03 14:51 (ALTech) Sangmin Choi New Issue
2022-01-03 14:51 (ALTech) Sangmin Choi Status new => assigned
2022-01-03 14:51 (ALTech) Sangmin Choi Assigned To => (SW) Jacky Chiang
2022-01-03 14:58 (ALTech) Sangmin Choi Note Added: 0009194
2022-01-03 19:04 (SW) Jacky Chiang Note Added: 0009199
2022-01-03 19:05 (SW) Jacky Chiang Assigned To (SW) Jacky Chiang => (SW) Jerry Lin
2022-01-03 19:05 (SW) Jacky Chiang Severity s2-severe => s3-moderate
2022-01-03 19:26 (SW) Jacky Chiang Issue Monitored: (SW) Jacky Chiang
2022-01-03 19:26 (SW) Jacky Chiang Issue Monitored: (SW) Peter Chen
2022-01-05 16:03 (SW) Jerry Lin Note Added: 0009204
2022-01-06 10:55 (ALTech) Sangmin Choi Note Added: 0009217
2022-01-06 12:07 (SW) Jerry Lin Note Added: 0009218
2022-01-06 13:45 (ALTech) Sangmin Choi Note Added: 0009279
2022-01-06 13:46 (ALTech) Sangmin Choi Status assigned => closed
2022-01-06 13:46 (ALTech) Sangmin Choi Resolution open => fixed
2022-01-06 14:25 (ALTech) Sangmin Choi Status closed => feedback
2022-01-06 14:25 (ALTech) Sangmin Choi Resolution fixed => reopened
2022-01-06 14:25 (ALTech) Sangmin Choi Note Added: 0009282
2022-01-06 14:33 (SW) Jerry Lin Note Added: 0009284
2022-01-06 14:46 (ALTech) Sangmin Choi Note Added: 0009285
2022-01-06 14:46 (ALTech) Sangmin Choi Status feedback => assigned
2022-01-06 17:34 (SW) Jerry Lin Assigned To (SW) Jerry Lin => (ALTech) Sangmin Choi
2022-01-06 17:34 (SW) Jerry Lin Status assigned => resolved
2022-01-06 17:34 (SW) Jerry Lin Note Added: 0009287
2022-01-07 08:26 (ALTech) Sangmin Choi Note Added: 0009291
2022-01-07 08:26 (ALTech) Sangmin Choi Status resolved => closed